
<template>
    <div class="user">
        <p>这是个用户页面</p>
        <Person :name="myName" @gaibianUser="getUser" :aData="datas">
            <template slot="cust">
                <span>这是定制化的数据</span>
            </template>
        </Person>
    </div>
    
</template>

  <script>
  import Person from '@/components/Person.vue'
  export default {
      name:'user',
      data(){
          return{
            myName:'Mozpd',
            datas:'我是父组件的数据'
          }
      },
      methods:{
        getUser(msg){
            this.myName = msg
        }
      },
      components:{
          Person
      }
  }
  </script>
  
